#include "wooderpmain.h"
#include "ui_wooderpmain.h"
#include "bjform.h"
#include <QMdiSubWindow>
#include "bjdialog.h"
#include "bjxqdialog.h"
WoodErpMain::WoodErpMain(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::WoodErpMain)
{
    ui->setupUi(this);
    clearWidget();

}


WoodErpMain::~WoodErpMain()
{
    delete ui;
}

void WoodErpMain::clearWidget()
{
    BJForm *BJ = new BJForm();
    setWindow(BJ);
    BJDialog *BJD = new BJDialog();
    BJD->exec();
    BJXQDialog *BJXQ = new BJXQDialog();
    BJXQ->exec();
}

void WoodErpMain::setWindow(QWidget *widget)
{

    QMdiSubWindow *md = new QMdiSubWindow;
    md->setWidget(widget);
    md->resize(800,600);
    ui->mdiArea->addSubWindow(md);
    md->show();
}

